﻿''' <summary>
''' Represents a rectangular area defined by its left (x), top (y) width and height.
''' </summary>
Public Structure Rectangle
    Public Left As Integer
    Public Height As Integer
    Public Top As Integer
    Public Width As Integer

    Public Function Right() As Integer
        Return Left + Width - 1
    End Function

    Public Function Bottom() As Integer
        Return Top + Height - 1
    End Function

    Public Sub New(l As Integer, t As Integer, w As Integer, h As Integer)
        Left = l
        Top = t
        Width = w
        Height = h
    End Sub
End Structure